
cmake_minimum_required(VERSION 3.0)
project(opencvtest VERSION 1.0.0 LANGUAGES C CXX)

set(EXPORT_TARGETS_NAME opencvtest)
set(TEST_MAJOR_VERSION ${PROJECT_VERSION_MAJOR})
set(TEST_MINOR_VERSION ${PROJECT_VERSION_MINOR})
set(TEST_MICRO_VERSION ${PROJECT_VERSION_PATCH})
set(TEST_VERSION ${PROJECT_VERSION})
set(TEST_SO_VERSION "1")

include(CMakeDependentOption)

set(CMAKE_CXX_STANDARD 11)
if(ANDROID)
	set(OpenCV_DIR ${CMAKE_PREFIX_PATH}/sdk/native/jni)
else()
	list(APPEND CMAKE_MODULE_PATH ${CMAKE_PREFIX_PATH}/lib/cmake/opencv4)
endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

include(CheckSymbolExists)
include(CMakePushCheckState)
include(GNUInstallDirs)
#include(OpenCVUtils)



if(NOT CMAKE_INSTALL_RPATH AND CMAKE_INSTALL_PREFIX)
	set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
endif()
find_package(OpenCV REQUIRED)
# include_directories must be called only UNDER THIS LINE in order to use our
# projects submodules first (we do NOT want to have system headers in first position)
include_directories(
	include/
	${CMAKE_INSTALL_FULL_INCLUDEDIR}
	${OpenCV_INCLUDE_DIRS}
)



if(ENABLE_DEBUG_LOGS)
	add_definitions("-DDEBUG")
endif()



add_subdirectory(tester)





